<%@ page import="DAO.TypeDAO" %>
<%@ page import="DAO.SupportDAO" %>
<%@ page import="DAO.GenreDAO" %>
<%@ page import="DAO.DAO" %>
<%@ page import="obj.Genre" %>
<%@ page import="obj.Support" %>
<%@ page import="obj.Type" %>
<form action="recherche" id="form1" method="post">
	<table width="90%" align="center">
		<tr>
			<td colspan="2" rowspan="2" align="center"><input type="text" name="id_video" value="" /></td>
			<td width="5%"></td>		
		  <td align="center" valign="middle"><label>Genre :</label></td>
			<td align="center" valign="middle"><label>Type :</label></td>
		  <td align="center" valign="middle"><label>Support :</label></td>
		</tr>
		<tr>
			<td align="center">&nbsp;</td>
			<td><select name="gen">
			<option value="" selected="true"></option>
			<%
			DAO<Genre> g = new GenreDAO(); 
			for(int i=0; i<g.selectAll().size();i++){
				%><option value="<%=g.selectAll().get(i)%>"><%=g.selectAll().get(i) %></option>
			<%}%>
			</select></td>
			<td><select name="typ">
			<option value="" selected="true"></option>
			 <%
			DAO<Type> t = new TypeDAO(); 
			for(int i=0; i<t.selectAll().size();i++){
				%><option value="<%=t.selectAll().get(i)%>"><%=t.selectAll().get(i) %></option>
			<%}	%>
			  </select>			
			  </td>
			<td>
			  <select name="sup">
			  <option value="" selected="true"></option>
			   <%
				DAO<Support> s = new SupportDAO(); 
				for(int i=0; i<s.selectAll().size();i++){
					%><option value="<%=s.selectAll().get(i)%>"><%=s.selectAll().get(i) %></option>
				<%}%>
		      </select>	
		    </td>
		</tr>
		<tr>
		  <td align="center" valign="middle">
		    <input type="submit" name="ACTION" value="creer" />
	     </td>
		  <td align="center"><input type="submit" name="ACTION" value="modifier" /></td>
			<td></td>
			<td align="left"></td>
			<td align="center"><input type="submit" name="ACTION" value="Rechercher"/></td>
			<td align="right"></td>
		</tr>
  </table>
</form>
